<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
	<%@ include file="/common/taglibs.jsp"%>
    <title>角色管理</title>
    <%@ include file="/common/meta.jsp"%>
</head>
<body>
	<!-- begin #page-loader -->
	<div id="page-loader" class="fade in"><span class="spinner"></span></div>
	<!-- end #page-loader -->
	
	<!-- begin #page-container -->
	<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
		
		<%@ include file="/common/header.jsp" %>
        <%@ include file="/common/slider.jsp" %>
		
		<!-- begin #content -->
		<div id="content" class="content">
			<!-- begin breadcrumb -->
			<ol class="breadcrumb pull-right">
				<li><a href="javascript:;"><fmt:message key="sys.healthcervix"/></a></li>
				<li><a href="javascript:;">系统设置</a></li>
				<li class="active">角色管理</li>
			</ol>
			<!-- end breadcrumb -->
			<!-- begin page-header -->
			<h1 class="page-header">角色管理 <!-- <small><fmt:message key="sys.healthcervix"/></small> --></h1>
			<!-- end page-header -->
			
			<!-- begin row -->
			<div class="row">
			    <!-- begin col-12 -->
			    <div class="col-md-12">
			        <!-- begin panel -->
                    <div class="panel panel-inverse">
                        
                        <div class="panel-body">
                        	<p>
	                        	<shiro:hasPermission name="role:list:add">
	                       			<a id="addBtn" name="addBtn" href="javascript:;" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i>新增</a>
	                       		</shiro:hasPermission>
							</p>
							<table id="roleListTable" class="table table-striped table-bordered table-hover">
								<thead>
									<tr>
										<th style="width:5%"><fmt:message key="public.list.index"/></th>
										<th style="width:20%">角色名</th>
										<th style="width:25%">类型</th>
										<th style="width:30%">备注</th>
										<th style="width:20%"><fmt:message key="public.list.operation"/></th>
									</tr>
								</thead>
								<tbody>
								</tbody>
							</table>
						</div>
					</div>
                    <!-- end panel -->
			    </div>
			    <!-- end col-12 -->
			</div>
			<!-- end row -->
			
			<div class="modal fade" id="editDlg" name="editDlg">
				<div class="modal-dialog">
					<form id="actForm" name="actForm" action="#" class="form-horizontal">
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
								<h4 class="modal-title"></h4>
							</div>
							<div class="modal-body">
									<div class="form-group">
				                        <label class="col-md-3 control-label ui-sortable">角色名<span class="required">*</span></label>
				                        <div class="col-md-9 ui-sortable">
				                            <input type="hidden" name="id" id="id"/>
											<input type="text" name="name" id="name" class="form-control" placeholder="请输入角色名" style="width: 80%"/>
				                        </div>
			                    	</div>
			                    	<div class="form-group">
										<label class="col-md-3 control-label ui-sortable">类型<span class="required">*</span></label>
										<div class="col-md-9 ui-sortable">
										    <select id="type" name="type" class="form-control" style="width: 80%">
				                        		<option value="0">管理员角色类型</option>
				                        		<option value="1">管理平台角色类型</option>
				                        	</select>
										</div>
									</div>
				                    <div class="form-group">
				                        <label class="col-md-3 control-label ui-sortable">备注<span class="required">*</span></label>
				                        <div class="col-md-9 ui-sortable">
				                        	<textarea rows="5" cols="6" name="remarks" class="form-control" placeholder="请输入备注" style="width: 80%;height:50px;"></textarea>
				                        </div>
				                    </div>
							</div>
							<div class="modal-footer-dialog">
								<a href="javascript:;" class="btn btn-sm btn-default" data-dismiss="modal"><fmt:message key="public.button_close"/></a>
								<button type="button" class="btn btn-sm btn-primary" id="actFormBtn"><fmt:message key="public.button_save"/></button>
							</div>
						</div>
					</form>
				</div>
			</div>
			
		</div>
		<!-- end #content -->
		
	</div>
	<!-- end page container -->
	<%@ include file="/common/footer.jsp"%>
	<script src="${ctx}/assets/js/jquery.dataTables.js"></script>
	<script src="${ctx}/assets/js/DT_bootstrap.js"></script>
	<script type="text/javascript" src="${ctx}/js/role/list.js?v=${ver}"></script> 
	<script type="text/javascript">
		jQuery(document).ready(function() {       
			RoleManaged.init();
		});
	</script>
	
</body>
</html>